<template>
  <div class="card" @click="$router.push(`/productDetail/${info.id}`)">
    <div class="title">
      {{info.name}}     
    </div>
    <div class="info">
      <div class="left">
        <div>业绩比较基准</div>
        <div>{{info.revenueRate||'-'}}</div>
      </div>
      <div class="right">
        <div>服务期限</div>
        <div>{{info.period||'-'}}</div>
      </div>
    </div>
  </div>
</template>
<script>
import avatarImg from "@/assets/images/my/avatar.png";

export default {
  props:{
    info:{
      type:Object,
      default:{}
    }
  },
  data() {
    return {
      avatarImg,
    };
  },
  components: {},
};
</script>
<style lang='scss' scoped>
.card{
  background: #fff;
  padding: 20px 10px;
  margin: 10px 10px 0;
  border-radius: 10px;
  &>.title{
    color: #333;
    font-weight: 400;
    width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }
  .info{
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    .left,.right{
      flex: 1;
      text-align: center;
      &>div:nth-child(1){
        font-size: 13px;
        color: #929292;
      }
      &>div:nth-child(2){
        font-size: 18px;
        font-weight: bold;
        color: #333;
        margin-top: 20px;
      }
    }
    .left>div:nth-child(2){
      color:#dab374;
      font-size: 22px;
    }
  }
}
</style>
